<template>
    <div>
        <div v-if="status === 'pending'">我还在加载中</div>
        <div v-else>我加载完成了</div>
        <article>
            <vue-markdown :source="data.content"/>
        </article>
    </div>
</template>

<script lang="ts" setup>
import VueMarkdown from "vue-markdown-render";
import {GET_API} from "~/composables/api";

const {data, status, refresh} = await GET_API(`article/${useRoute().params.id}`, {})
</script>